<?php
class Zenddn_Account_ActivationCode{
    
    public function generateActivationCode($email, $name){
    	$activationCode = substr(sha1(substr(md5($email), 20, 20) . substr(md5($name), 45, 25)), 0, 10);
        
        return $activationCode;
    }
    
    public function generateResetPasswordCode($email, $name){
    	$resetPasswordCode = substr(sha1(substr(md5($email), 25, 26) . substr(md5($name), 30, 17)), 15, 10);
        
        return $resetPasswordCode;
    }
}